package com.chujian.framework.util;

import lombok.Data;
import lombok.experimental.Accessors;

import java.util.Map;

/**
 * url信息
 */
@Data
@Accessors(chain = true)
public class UrlInfo {

    private String url;
    private String protocol;
    private String host;
    private int port;

    private String path;
    private String query;

    Map<String, String> params;

    public String getParam(String key) {
        return params.get(key);
    }

    public void setParam(String key, String value) {
        this.params.put(key, value);
    }

}
